package rj.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebServlet;

@WebServlet(name="ShowInformation",urlPatterns = "/ShowInformation")
public class ShowInformation extends GenericServlet {
    @Override
    public void service(ServletRequest request, ServletResponse response)
            throws ServletException, IOException {
        response.setContentType("text/html;charset=utf-8");
        PrintWriter out = response.getWriter();

        out.println("<html><body>");
        out.println("<h1>个人信息</h1>");
        out.println("<p>专业: 软件工程</p>");
        out.println("<p>班级: 22级2班</p>");
        out.println("<p>学号: 202203020243</p>");
        out.println("<p>姓名: 赵春祥</p>");
        out.println("<p>性别: 男</p>");
        out.println("<p>年龄: 20</p>");
        out.println("</body></html>");
    }
}
